<%--
  Created by IntelliJ IDEA.
  User: 周晓伟
  Date: 2021/10/16
  Time: 9:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>房间预定</title>
</head>
<style>

</style>
<body>
<img src="Static/bgc.jpg" height="600" width="1400">
<p>
    预订单人间
</p>
<br>
<h3>房间信息</h3>
<table border="1">
    <thead align="center">
    <td>房间号</td>
    <td>可住人数</td>
    <td>单价</td>
    <td>楼层</td>
    <td>状态</td>
    <td>类型</td>
    <td>预定</td>
    </thead>
    <tbody>
    <c:forEach items="${result}" var="one">
        <tr>
            <td>${one.name}</td>
            <td>${one.amount}</td>
            <td>${one.price}</td>
            <td>${one.floot_id}</td>
            <td>
                <c:if test="${one.state ==0}">可预订</c:if>
                <c:if test="${one.state ==1}">已预定</c:if>
            </td>
            <td>${one.type}</td>
            <td>
                <c:if test="${one.state ==0}"><a href="/hostel_war_exploded/order?name=${one.name}">预订</c:if>
                <c:if test="${one.state ==1}">已预定</c:if>
            </td>
        </tr>
    </c:forEach>
    </tbody>
    </thead>
</table>


</body>
</html>
